#include "TXLib.h"

void drawFigura(int x, int y, double sizeX, double sizeY, COLORREF color);

int main()
{
    txCreateWindow(600, 400);

    txSetFillColor(TX_PINK);
    txClear();

    drawFigura(100, 50, 1.5, 1.5, TX_BLUE);

    return 0;
}

void drawFigura(int x, int y, double sizeX, double sizeY, COLORREF color)
{
    txSetColor(color);
    txLine(x + (100 - 10) * sizeX, y + (50 - 10) * sizeY, x + (100 - 10) * sizeX, y + (150 - 10) * sizeY);
    txLine(x + (100 - 10) * sizeX, y + (150 - 10) * sizeY, x + (150 - 10) * sizeX, y + (150 - 10) * sizeY);
    txLine(x + (150 - 10) * sizeX, y + (150 - 10) * sizeY, x + (150 - 10) * sizeX, y + (200 - 10) * sizeY);
    txLine(x + (150 - 10) * sizeX, y + (200 - 10) * sizeY, x + (200 - 10) * sizeX, y + (200 - 10) * sizeY);

    txLine(x + (200 - 10) * sizeX, y + (200 - 10) * sizeY, x + (200 - 10) * sizeX, y + (100 - 10) * sizeY);
    txLine(x + (200 - 10) * sizeX, y + (100 - 10) * sizeY, x + (150 - 10) * sizeX, y + (100 - 10) * sizeY);
    txLine(x + (150 - 10) * sizeX, y + (100 - 10) * sizeY, x + (150 - 10) * sizeX, y + (50 - 10) * sizeY);
    txLine(x + (150 - 10) * sizeX, y + (50 - 10) * sizeY, x + (100 - 10) * sizeX, y + (50 - 10) * sizeY);

}
